package com.rayson.yututu;

import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author wulei
 */
@Slf4j
@SpringBootApplication(exclude = ShardingSphereAutoConfiguration.class)
@MapperScan("com.rayson.yututu.mapper")
@EnableAspectJAutoProxy(exposeProxy = true) // 开启AOP，并且暴露代理对象
@EnableRedisHttpSession // 开启Spring Session
public class YututuBackendApplication {
    public static void main(String[] args) {
        SpringApplication.run(YututuBackendApplication.class, args);
        log.info("===== YuTuTu App Start Success =====");
    }
}
